﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class ImageLabel;
class ScreenshotTool;
class HoverButton;
class ReportGenerator;
class MarkableImage;
class Attribute;

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void openImage();
    void on_screenshot_Btn_clicked();
    void saveImage();
    void on_recognize_Btn_clicked();
    /*设置路径*/
    void on_path_Btn_clicked();
    void on_report_Btn_clicked();
    void onPointSelected(const int &index);
private:
    Ui::MainWindow *ui;
    ImageLabel *m_imageLabel;
    ScreenshotTool *m_screenshotTool;
    HoverButton *m_hoverButton;
    ReportGenerator *m_reportGenerator;
    MarkableImage *m_markableImage;
    Attribute *m_options;
    QString m_picPath;              //图片存储路径
private:
    void setupUI();
signals:
    void sigGenerateReport();//生成报告点击
};
#endif // MAINWINDOW_H
